package com.gin.kotlin.gf2gamecommunity.viewmodel

import androidx.lifecycle.ViewModel
import com.gin.kotlin.gf2gamecommunity.app.App
import com.gin.kotlin.gf2gamecommunity.base.livedata.CachedLiveData
import com.gin.kotlin.response.ListData
import com.gin.kotlin.response.Res
import com.gin.kotlin.response.other.EmojiClassify

class EmojiViewModel : ViewModel() {

    val emojiList = CachedLiveData<Res<ListData<EmojiClassify>>, List<EmojiClassify>>(
        requestMethod = { App.INSTANCE.api.otherApi.getEmoji() },
        bodyTransform = { it.data?.list },
    )


    companion object {
        private val TAG = EmojiViewModel::class.java.simpleName
    }
}